package yiyuan.code.filedemo.file.domain.definemodel.basicstore;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
public class Etfileinfo {
  private String fid;
  private String fname;
  private String fstorename;
  private String fsuffix;
  private String fstoreplace;
  private Timestamp ftime;
  private String fstate;
  private String ftype;

  @Id
  @Column(name = "fid")
  public String getFid() {
    return fid;
  }

  public void setFid(String fid) {
    this.fid = fid;
  }

  @Basic
  @Column(name = "fname")
  public String getFname() {
    return fname;
  }

  public void setFname(String fname) {
    this.fname = fname;
  }

  @Basic
  @Column(name = "fstorename")
  public String getFstorename() {
    return fstorename;
  }

  public void setFstorename(String fstorename) {
    this.fstorename = fstorename;
  }

  @Basic
  @Column(name = "fsuffix")
  public String getFsuffix() {
    return fsuffix;
  }

  public void setFsuffix(String fsuffix) {
    this.fsuffix = fsuffix;
  }

  @Basic
  @Column(name = "fstoreplace")
  public String getFstoreplace() {
    return fstoreplace;
  }

  public void setFstoreplace(String fstoreplace) {
    this.fstoreplace = fstoreplace;
  }

  @Basic
  @Column(name = "ftime")
  public Timestamp getFtime() {
    return ftime;
  }

  public void setFtime(Timestamp ftime) {
    this.ftime = ftime;
  }

  @Basic
  @Column(name = "fstate")
  public String getFstate() {
    return fstate;
  }

  public void setFstate(String fstate) {
    this.fstate = fstate;
  }

  @Basic
  @Column(name = "ftype")
  public String getFtype() {
    return ftype;
  }

  public void setFtype(String ftype) {
    this.ftype = ftype;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Etfileinfo that = (Etfileinfo) o;
    return Objects.equals(fid, that.fid) &&
      Objects.equals(fname, that.fname) &&
      Objects.equals(fstorename, that.fstorename) &&
      Objects.equals(fsuffix, that.fsuffix) &&
      Objects.equals(fstoreplace, that.fstoreplace) &&
      Objects.equals(ftime, that.ftime) &&
      Objects.equals(fstate, that.fstate) &&
      Objects.equals(ftype, that.ftype);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fid, fname, fstorename, fsuffix, fstoreplace, ftime, fstate, ftype);
  }
}
